//
//  Error.h
//  PacketSniffer
//
//  Created by nark on 01/05/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>


extern NSString *const PSReceiveErrorNotification;


typedef enum PSErrorType {
	PSErrorTypeWarning,
	PSErrorTypeCritical,
	PSErrorTypeFatal
} PSErrorType;


@interface PSError : NSObject {
	NSString *message;
	PSErrorType type;
	NSArray *infos;
}

+ (void)notifyError:(PSError *)_error;
- (id) initWithType:(PSErrorType)_type message:(NSString *)_message infos:(NSArray *)_infos;

@property (readwrite, retain) NSString *message;
@property (readwrite) PSErrorType type;
@property (readwrite, retain) NSArray *infos;

@end
